package com.haoze.nurseapp.dao;

import com.haoze.common.mapper.MyMapper;
import com.haoze.nurseapp.model.TaskEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * @Author: Chenchao
 * @CreateTime: 2020-03-02 15:44
 */
public interface TaskMapper extends MyMapper<TaskEntity> {

    List<TaskEntity> getTaskList(Map params);

    TaskEntity queryOneTaskById(String taskId);

    void updNowTaskByTaskName(String taskName);

    List<Map<String, String>> getStartTasks(String queryString);

    String getOldTaskId(@Param("taskName") String taskName);

    void replaceOldTaskId(@Param("oldTaskId") String oldTaskId, @Param("newTaskId") String newTaskId);

    int getUsedxCnt(@Param("taskId") String taskId);

    Map<String, String> getTaskByParams(@Param("taskName") String taskName, @Param("taskId") String taskId);
}
